package com.steel.yfmall.cloud.assistant.controller;

import com.steel.yfmall.cloud.assistant.api.stock.ZgSendCompanyInfoAPI;
import com.steel.yfmall.cloud.assistant.bean.param.APIParamUserCompanyBean;
import com.steel.yfmall.cloud.components.utils.base.APIMsgBean;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: ZgSendCompanyInfoController
 * @author: liuzhijun
 * @date: 2020-12-24 11:51
 **/
@RestController
public class ZgSendCompanyInfoController {


    /**
     * 推送金蝶企业系统，获取企业编码
     *
     * @param paramUserCompanyBean
     * @return com.steel.yfmall.cloud.components.utils.base.APIMsgBean<java.lang.Boolean>
     * @author liuzhijun
     * @date 2020/12/24 11:53
     */
    @RequestMapping("/sendCompanyInfo")
    APIMsgBean<String> sendCompanyInfo(@RequestBody APIParamUserCompanyBean paramUserCompanyBean) {
        return zgSendCompanyInfoAPI.sendCompanyInfo(paramUserCompanyBean);
    }

    @Resource
    private ZgSendCompanyInfoAPI zgSendCompanyInfoAPI;


}
